from flask import Flask, render_template
from jinja2.utils import markupsafe

app = Flask(__name__)


def func(a, b):
    return a + b


@app.route('/hello')
def hello():
    name_data = '苯环'
    love = '编程'
    html = "<h1>you are beautiful!</h1>"
    return render_template('hello.html', name=name_data,
                           love=love, html=markupsafe.Markup(html)
                           , func=func)


if __name__ == '__main__':
    app.run()
